import numpy as np
import matplotlib.pyplot as plt

if __name__ == '__main__':
    np.random.seed(2)

    x = np.array(range(0, 100))
    # print(x)

    y = np.random.uniform(0, 10, 100)
    # print(y)

    # 计算均值
    mean = y.mean()
    deviation = y.std()

    stand = (y - mean) / deviation

    # print(stand)

    plt.scatter(x, y, c='red')
    plt.scatter(x, stand, c='green')
    plt.show()
